package com.yzf.wisecoder.wisecoderstorage.mysql.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author jianghuiyong
 * @email jianghuiyong@yunzhangfang.com
 * @date 2020-05-06 17:43:12
 */
@Data
@TableName("wise_resource")
@Accessors(chain = true)
public class ResourceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 资源ID
     */
    @TableId
    private Long resourceId;
    /**
     * 资源名称
     */
    private String resourceName;
    /**
     * 资源编码
     */
    private String resourceCode;
    /**
     * 资源URL
     */
    private String resourceUrl;
    /**
     * 资源请求方法(GET,POST,PUT,DELETE)
     */
    private String method;
    /**
     * 父级资源ID
     */
    private Long parentId;
    /**
     * 资源类型
     */
    private Integer resourceType;
    /**
     * 租户ID
     */
    private Long tenantId;
    /**
     * 创建人
     */
    private Long creator;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 删除状态 0: 未删除  1: 已删除
     */
    private Boolean deleted;

}
